const { defineConfig } = require('@vue/cli-service')
const { resolve } = require('path')
// 头部引入 v3版本默认缺少自动引入
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    resolve: {
      alias: {
        "@": resolve("src"),
      }
    },
    plugins: [new NodePolyfillPlugin()],
    module: {
      rules: [
        {
          test: /\.css$/,
          use: ['sass-loader']
        }
      ]
    }
  }
})
